package spi;

import org.apache.dubbo.common.URL;

/**
 * @author pwdan
 * @create 2023-05-06 16:54
 **/
public class MySpiWrapper implements MySpi {

    private final MySpi mySpi;

    public MySpiWrapper(MySpi mySpi) {
        this.mySpi = mySpi;
    }

    @Override
    public void hello(String name) {
        mySpi.hello(name);
    }

    @Override
    public String adaptiveOne(URL url) {
        return mySpi.adaptiveOne(url);
    }

    @Override
    public String adaptiveTwo(MyURL myURL) {
        return mySpi.adaptiveTwo(myURL);
    }
}
